package com.shuai.jit.entity.vo;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@TableName("article")
public class VoArticle {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("用户id")
    private String userId;

    @ApiModelProperty("用户名字")
    private String username;

    @ApiModelProperty("用户头像")
    private String userImg;

    @ApiModelProperty("文章的内容")
    private String articleContext;

    @ApiModelProperty("文章的浏览量")
    private Integer articleViews;

    @ApiModelProperty("评论的数量")
    @TableField(exist = false)
    private Integer articleComment;

    @ApiModelProperty("是否点赞")
    @TableField(exist = false)
    private Integer isGood;

    @ApiModelProperty("文章的点赞")
    private Integer articleGood;

    @ApiModelProperty("文章的踩")
    private Integer articleBad;

    @ApiModelProperty("文章的收藏数")
    private Integer articleStar;

    @ApiModelProperty("文章的标题")
    private String articleTitle;

    @ApiModelProperty("文章封面图片")
    private String articleImage;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private LocalDateTime gmtCreate;


}
